package es.ceura.wilder.datastructures.request;

import es.ceura.wilder.actions.ActionType;

/**
 *
 * @author Jorge Madrid
 */
public class StatusLine {

    public final ActionType httpMethod;
    private final String resourcePath;
    private final String httpVersion;

    public StatusLine(ActionType httpMethod, String resourcePath, String httpVersion) {
        this.httpMethod = httpMethod;
        this.resourcePath = resourcePath;
        this.httpVersion = httpVersion;
    }

    public String getResourcePath() {
        return resourcePath;
    }

    public String getHttpVersion() {
        return httpVersion;
    }

    @Override
    public String toString() {
        return "HTTPRequest{" + "httpMethod=" + httpMethod + ", resourcePath=" + resourcePath + ", httpVersion=" + httpVersion + '}';
    }
}
